package com.mc.read.dao.mapper;

import com.mc.read.dao.models.Readtime;
import com.mc.read.dao.models.ReadtimeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReadtimeMapper {
    int countByExample(ReadtimeExample example);

    int deleteByExample(ReadtimeExample example);

    int deleteByPrimaryKey(Integer readtimeid);

    int insert(Readtime record);

    int insertSelective(Readtime record);

    List<Readtime> selectByExample(ReadtimeExample example);

    Readtime selectByPrimaryKey(Integer readtimeid);

    int updateByExampleSelective(@Param("record") Readtime record, @Param("example") ReadtimeExample example);

    int updateByExample(@Param("record") Readtime record, @Param("example") ReadtimeExample example);

    int updateByPrimaryKeySelective(Readtime record);

    int updateByPrimaryKey(Readtime record);
    /**
     * @Author:LiuHao
     * @Date:15:24 2019/5/31
     *查出是否是连接的最后一条
     **/
    Readtime selectLastByUser(Readtime readtime);
}